package com.hzt.agprosaleplatform.entity;

import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;

@Data
public class FinanceApplicationVO {
    private Integer finance_id;
    private String user_id;
    private String username; // 申请人姓名
    private Integer shop_id;
    private Integer goods_id;
    private BigDecimal amount;
    private String purpose;
    private Integer term;
    private BigDecimal interestRate;
    private Integer status;
    private Date applyTime;
    private Date auditTime;
    private String auditOpinion;

    // 状态文本方法
    public String getStatusText() {
        switch (this.status) {
            case 0: return "待审核";
            case 1: return "审核通过";
            case 2: return "已拒绝";
            case 3: return "已放款";
            case 4: return "已还款";
            case 5: return "逾期";
            case 6: return "已取消";
            default: return "未知状态";
        }
    }
}